package com.h.chatroom.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;

import java.io.IOException;

public interface WebSocketService {

    void registerSession(WebSocketSession session);

    void processMessage(WebSocketSession session, TextMessage message) throws IOException;

    void handlerError(WebSocketSession session, Throwable exception);

    void removeSession(WebSocketSession session, CloseStatus status);

}
